﻿using System;
using System.Collections.Generic;
using System.Text;
using Tauren.Business.Entity.Config;

namespace Tauren.Business.Service.Resources
{

    public interface IResourcesService
    {
        /// <summary>
        /// 分页获取数据
        /// </summary>
        /// <param name="queryModel"></param>
        /// <returns></returns>
        IResponseMessage Pages(Entity.Global.QueryModel queryModel);

        /// <summary>
        /// 根据主键ID获取数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Get(long AutoID);

        /// <summary>
        /// 添加数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Add(Entity.Input.ModuleResouces_Input Data);

        /// <summary>
        /// 添加数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Editor(Entity.Input.ModuleResouces_Input Data);

        /// <summary>
        /// 禁用数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Enable(long AutoID);
        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Delete(long AutoID);

        /// <summary>
        /// 根据主键ID获取数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Model(long AutoID);

        /// <summary>
        /// 根据主键ID获取数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Config(string PageType);

        /// <summary>
        /// 获取数据模板
        /// </summary>
        /// <returns></returns>
        IResponseMessage Template(string key);

    }
}
